package com.ldk.api;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 检查验证Token
 * @author xiangwl
 *
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CheckToken {

	/**
	 * 检查默认为false
	 */
	boolean check() default false;
	/**
	 * 验证token的Key，默认openId
	 */
	String  tokenKey() default "openId";
	
	/**
	 * 平台，客户端:"client";
	 * 司机端:"driver";
	 */
	RequestPlatform platform() default RequestPlatform.driver;
}
